﻿using Schism.Actors;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Schism.Core
{
    public sealed class Director
    {
        //Fields
        private List<Actor> _ActorsList;
        
        //ctor
        public Director()
        {
            _ActorsList = new List<Actor>();
        }
        public Director(params Actor[] actors)
        {
            _ActorsList.AddRange(actors);
        }
        
        //Methods
        public IEnumerable<Actor> GetFriendlies()
        {
            return _ActorsList.Where(a => a is Friendly);
        }
        public IEnumerable<Actor> GetEnemies()
        {
            return _ActorsList.Where(a => a is Enemy);
        }
        public IEnumerable<Actor> GetAll()
        {
            return _ActorsList;
        }
    }
}
